var helpInfo : GUITexture;
var showStart = false;
var hideStart = false;
var speed = 1;
var totalTimes = 100;
var two_steps = true;

function Update() {
	if (showStart) {
		if (helpInfo.transform.position.y <= 0.5) {
			helpInfo.transform.position.y = helpInfo.transform.position.y + speed * 0.01;
			if (two_steps) {
				helpInfo.color.a = helpInfo.color.a + 1.0/totalTimes;
				two_steps = false;
			} else {
				two_steps = true;
			}
		} else {
			showStart = false;
		}
	}
	if (hideStart) {
		if (helpInfo.transform.position.y >= -0.5) {
			helpInfo.transform.position.y = helpInfo.transform.position.y - speed * 0.01;
			if (two_steps) {
				helpInfo.color.a = helpInfo.color.a - 1.0/totalTimes;
				two_steps = false;
			} else {
				two_steps = true;
			}
		} else {
			hideStart = false;
		}
	}
}
